package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.Product;

@Repository
public interface ProductDao {
	public int addProduct(Product Product);

	public Product getProductByProductId(long productId);

	public List<Product> selectByCondition(@Param("folderId") long folderId,
			@Param("offset") long offset, @Param("rows") long rows);

	public int updateProduct(Product Product);

	public int deleteProduct(long productId);

	public int selectCountByPage(@Param("folderId") long folderId);

}
